package com.beep.erp.model.stockIn.stockindetail;

import com.beep.erp.common.base.BaseBean;
import com.beep.erp.common.bean.StockInDetailBean;
import com.beep.erp.common.bean.StockListBean;
import com.beep.erp.http.HttpRetrofit;
import com.beep.erp.http.RetryWhenNetworkException;
import com.beep.erp.model.addinstock.SaveStockBody;
import com.beep.erp.model.stockdetail.StockDetailContract;

import rx.Observable;

/**
 * Created by Jolly on 2018/8/2.
 */

public class StockInDetailModel implements StockInDetailContract.Model {
    @Override
    public Observable<StockInDetailBean> getStockInDetail(String sign, String timeStamp, String stockId) {
        return HttpRetrofit.getInstance().apiService.getStockInDetail(sign, timeStamp, stockId).compose(HttpRetrofit.toSubscribe()).compose(HttpRetrofit.toTransformer()).retryWhen(new RetryWhenNetworkException());
    }

}
